package cloud.take.off.module.product.entity;

import cloud.take.off.mybatis.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * @Description: TODO
 * @Author: Take-off
 * @Date: 2024/10/14 4:22 PM
 * @Param
 * @return
 * @Version: 1.0
 **/
@EqualsAndHashCode(callSuper = true)
@Data
@TableName(value = "product_inventory")
@ApiModel(value = "ProductInventory 对象", description = "产品库存")
public class ProductInventory extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "产品Id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long productId;

    @ApiModelProperty(value = "产品名称")
    private String productName;

    @ApiModelProperty(value = "库存数量")
    private BigDecimal inventory;

    @ApiModelProperty(value = "单位")
    private String unit;
}
